<?php

Raise::load('RaiseAction');

/**
 * RaiseRedirectionAction Class
 * A redirection action
 *
 * @author Sam-Mauris Yong / hellclanner at live dot com
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package phpraise.core.action
 * @since 1.2
 */
class RaiseRedirectAction extends RaiseAction {
    
    public function __construct($destination) {
        parent::__construct();
        $this->params()->add('r', $destination);
    }

    public function action($app) {
        $app->response()->redirect($this->params()->get('r'));
    }

    public function header($headers) {
        
    }

    public function output() {
        
    }
    
}